import request from '@/utils/request'

// 查询列表
export function listAll() {
  return request({
    url: '/console/album/list',
    method: 'get',
  })
}

//相册
export function listImages(params) {
  return request({
    url: '/console/album/getPhotos',
    method: 'get',
    params: params
  })
}

//视频
export function listVideos(params) {
  return request({
    url: '/console/album/getVideos',
    method: 'get',
    params: params
  })
}

//相册保存
export function saveImages(data) {
  return request({
    url: '/console/album/addPhoto',
    method: 'post',
    data: data
  })
}

//视频保存
export function saveVideos(data) {
  return request({
    url: '/console/album/addVideo',
    method: 'post',
    data: data
  })
}